<%@ page language="java" import="java.util.*,com.wcll.www.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<jsp:useBean id="pages" class="com.wcll.www.CorrBean"></jsp:useBean>
<jsp:setProperty name="pages" property="*"/>
 <div style="text-align:center;font-size:12px;">
<% 
 	ArrayList<CorrBean> al = (ArrayList<CorrBean>)request.getAttribute("corr");
 	Iterator<CorrBean> ial = al.iterator();
 	%>
 	<table style="text-align:center;font-size:12px;" border="1">
 		<tr>
 			<td>编号</td>
 			<td>用户名称</td>
 			<td>用户密码</td>
 			<td>所在省</td>
 			<td>所在市</td>
 			<td>所在县</td>
 			<td>联系方式</td>
 			<td>email</td>
 			<td>申请时间</td>
 			<td>基本操作</td>
 			</tr>
 				<% 
 	while(ial.hasNext()){
 	CorrBean ab = ial.next();
 	%>
 		<tr>
 			<td><%=ab.getName()+"ss"%></td>
 			<td><%out.println("ss");%></td>

 		</tr>
 		
 	<%}	
%>
</table>
<div id = "dd" style="display:none;position:absolute;top:200px;left:400px;z-index:10;width:350px;">
	<span style="float:right;cursor:hand;" onClick="hidden();">[&nbsp;关闭&nbsp;]</span>
	<form>
	<input type="hidden" value="" id="md"/>
	<table style="text-align:center;font-size:12px;" border="1">
	<tr>
	<td>用户:</td>
	<td><input type="text" name="ad_name"/></td>
	</tr>
	<tr>
	<td>密码:</td>
	<td><input type="password" name="ad_password"/></td>
	</tr>
	<tr>
	<td>确认密码:</td>
	<td><input type="password" id="ad_password"/></td>
	</tr>
	<tr>
	<td colspan="2" align="center"><input type="submit" value="确认" onClick="hidden();"/></td>
	</tr>
	</table>
	</form>
</div>
<span style="font-size:12px;float:left;">
<%
	int p = pages.getCounts();
	for(int i =1;i<=p;i++){
	%>
	<a href="<%=basePath%>servlet/CorrServlet?currage=<%=i %>">第<%=i %>页</a>
	<%}
 %>
</span>
</div>
<script src="./includes/ajax.js"></script>
<script>
function show(id){
	var xg = document.getElementById("dd");
	var md = document.getElementById("md");
	md.value=id;
	xg.style.display="block";
	
}
function hidden(){
	var xg = document.getElementById("dd");
	xg.style.display="none";
}
</script>